package com.org.web.api.unishop;

import com.org.platform.model.ResultModel;
import com.org.web.api.unishop.service.UserService;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duheng
 * @Date 2021/10/14 20:58
 */
@RestController
public class MobileShopUserController {

	@Autowired
	private UserService userService;

	@RequestMapping(value = {"/mobile/unishop/login"},method = RequestMethod.POST)
	public ResultModel login(@RequestBody Map<String,Object> params) {
		return userService.login(params);
	}


	@RequestMapping(value = {"/mobile/unishop/test"}, method = RequestMethod.GET)
	public ResultModel test() {
		return ResultModel.newSuccess();
	}
}
